<h1>Listing instructors</h1>

<table>
  <tr>
    <th>First name</th>
    <th>Surname</th>
    <th>Birthdate</th>
    <th>Telephone</th>
    <th>Salary</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @instructors.each do |instructor| %>
  <tr>
    <td><%= instructor.first_name %></td>
    <td><%= instructor.surname %></td>
    <td><%= instructor.birthdate %></td>
    <td><%= instructor.telephone %></td>
    <td><%= instructor.salary %></td>
    <td><%= link_to 'Show', instructor %></td>
    <td><%= link_to 'Edit', edit_instructor_path(instructor) %></td>
    <td><%= link_to 'Destroy', instructor, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Instructor', new_instructor_path %>
